/*Write declarations for the following: 
(1).a pointer to a character
(2).an array of 10 integers, 
(3).a reference to an array of 10 integers, 
(4).a pointer to an array of character strings,
(5).a pointer to a pointer to a character,
(6).a constant integer, 
(7).a pointer to a constant integer, 
(8).and a constant pointer to an integer. 
Initialize each one.
*/
#include <string>
#include <iostream>
int main()
{
    char* pc = 0;               //1
    int   array[10];            //2
    int (&a)[10] = array;       //3
    
    typedef int parray[10];
    parray& ref_array = array;  //3

    
    std::string (*pstring)[10]; //4
    typedef std::string p2string[10];
    p2string* pstring2;          //4


    char** ppc = &pc;           //5
    const int ci = 10;          //6
    const int* pci ;            //7
    int const* pci2;            //7
    
    int i;
    int* const cpi = &i;       //8


    for(int i = 0 ; i< 10 ; i++)
        array[i] = i;
    
    for( int i = 0 ; i < 10 ; i++)
    {
        std::cout << a[i] << " ";
    }
    std::cout << std::endl;
    
    
}

    
